package oop.java0318;

public class CarTest {
    public static void main(String[] args) {
        Car car = new Car();
        Engine e = new Engine();
        car.engine = e;
        car.engine.brand = "比亚迪";
        car.engine.displacement = 500;
        car.engine.wight = 1759;
        car.engine.horsepower = 770;
        car.print();
        car.engine.print();
        System.out.println("汽车启动过程：");
        car.engine.start();
        car.run();

    }
}
